package com.style.staticed;

import com.style.core.Event;
import com.style.core.Mouse;
import com.style.core.MouseEventCallback;
import com.style.core.MouseEventType;

import java.lang.reflect.Method;

public class StaticedTest {
    public static void main(String[] args) {
        try {
            MouseEventCallback callback=new MouseEventCallback();
            Method onClick = callback.getClass().getMethod("onClick", Event.class);

            Mouse mouse=new Mouse();

            MouseStaticedProxy mouseStaticedProxy=new MouseStaticedProxy(mouse);
            mouseStaticedProxy.addLisenter(MouseEventType.ON_CLICK,callback,onClick);
            mouseStaticedProxy.click();


        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
